package com.qdlc.p2p.dal.model;


import com.qdlc.p2p.dal.dto.EnjoyBorrow;
import org.springframework.beans.BeanUtils;

/**
 * Created by D on 2016/1/20.
 */
public class EnjoyBorrowModel extends EnjoyBorrow {



    /**
     * 标uuid
     */
    private String uuid;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品原价
     */
    private double price;

    /**
     *单笔投资金额
     */
    private double lowestAccount;

    /**
     * 单笔投资产生的利息
     */
    private double aprAccount;

    /**
     * 借款时间
     */
    private int timeLimit;

    /**
     * 天标/月标
     */
    private int timeType;

    /**
     * 开标时间
     */
    private String startTime;

    /**
     * 图片地址
     */
    private String picPath;

    /**
     * 商品介绍
     */
    private String content;

    /**
     *专区所在位置
     */
    private int position;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getLowestAccount() {
        return lowestAccount;
    }

    public void setLowestAccount(double lowestAccount) {
        this.lowestAccount = lowestAccount;
    }

    public double getAprAccount() {
        return aprAccount;
    }

    public void setAprAccount(double aprAccount) {
        this.aprAccount = aprAccount;
    }

    public int getTimeLimit() {
        return timeLimit;
    }

    public void setTimeLimit(int timeLimit) {
        this.timeLimit = timeLimit;
    }

    public int getTimeType() {
        return timeType;
    }

    public void setTimeType(int timeType) {
        this.timeType = timeType;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getPicPath() {
        return picPath;
    }

    public void setPicPath(String picPath) {
        this.picPath = picPath;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static EnjoyBorrowModel instance(EnjoyBorrow enjoyBorrow) {
        EnjoyBorrowModel enjoyBorrowModel = new EnjoyBorrowModel();
        BeanUtils.copyProperties(enjoyBorrow, enjoyBorrowModel);
        return enjoyBorrowModel;
    }
}
